package org.liuyunfeng.config;

import org.springframework.amqp.support.converter.Jackson2JsonMessageConverter;
import org.springframework.amqp.support.converter.MessageConverter;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author: TanJingyu
 * @create: 2022-03-18 16:50
 **/
@Configuration(proxyBeanMethods = false)
public class RabbitConfiguration {
    @Bean
    public MessageConverter Jackson2JsonMessageConverter() {
        return new Jackson2JsonMessageConverter();
    }
}

    